<template>
    <div v-for="(item,index) in list" :key="index">
        索取是：{{ index }} --- 元素的内容是：{{ item }}
    </div>
</template>
<script setup>
    import {reative } from 'vue'
    const list = reative([
        {id:1,message:'梅',},
        {id:2,message:'垃',},
        {id:3,message:'竹',},
        {id:4,message:'菊'}
    ])
</script>
<style>

</style>